Instance Variables

The following instance variables are available globally.

  • The path of the database

    Declaration

    Swift

    public var path: String
  • tag

    The tag of the database. Default to nil.
    You should set it on a database and can get it from all kind of Core objects, including Database, Table, Transaction, Select, RowSelect, MultiSelect, Insert, Delete, Update and so on.
    Note that core objects with same path share this tag, even they are not the same object.

    let database1 = Database(withPath: path)
    let database2 = Database(withPath: path)
    database1.tag = 1
    print("Tag: \(database2.tag!)") // print 1
    

    Declaration

    Swift

    public var tag: Tag?
  • URLs to all database-related files.

    Declaration

    Swift

    public var urls: [URL]
  • Paths to all database-related files.

    Declaration

    Swift

    public var paths: [String]